package hu.berczi.projects.LifeGame.Creatures;

import hu.berczi.Utils.Coordinates.planar.Vector;

public class Rabbit extends Creature {

	static {
		Rabbit.enemies.add(Hunter.class);
		Rabbit.enemies.add(Fox.class);
		Rabbit.spoils.add(Grass.class);
	}

	public Rabbit() {
		this.setSeeRange(1.0);
		this.setSpeed(4);
		this.age_max = 5;
	}

	@Override
	public void move(Vector direction) {
	}

	@Override
	public Creature propagate(Creature partner) {
		Creature newCreature = null;
		if (super.propagate(partner) != null) {
			newCreature = new Rabbit();
		}
		return newCreature;
	}

	/*
	 * Rabbits strategy: 3 goals - in priority-order: 1.) avoid foxes+hunters
	 * 2.) go to grass (if hungry) 3.) go to another (opp. sex) rabbits to have
	 * sex. ;)
	 * 
	 * @see sberczi.LifeGame.Creature#calcDirection()
	 */
	public void calcDirection() {
		// TODO Auto-generated method stub

	}

}
